package com.shuaigef.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * 帖子点赞表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("post_like")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PostLike implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞记录ID
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    private Integer likeId;

    /**
     * 点赞用户ID
     */
    private Integer userId;

    /**
     * 帖子ID
     */
    private Integer postId;

    /**
     * 点赞时间
     */
    private LocalDateTime likeTime;
} 